//
//  HSForumListModel.h
//  HolyShit
//
//  Created by Robin on 2017/4/4.
//  Copyright © 2017年 HolyShit. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HSForumAttributesModel : NSObject<YYModel>

@property (nonatomic, copy) NSString *iconUrl;
@property (nonatomic, copy) NSString *slug;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *desc;
@property (nonatomic, copy) NSString *color;
@property (nonatomic, assign) NSUInteger discussionsCount;

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *startTime;
@property (nonatomic, copy) NSString *lastTime;

@property (nonatomic, assign) NSUInteger commentsCount;//评论数
@property (nonatomic, assign) NSUInteger participantsCount;//参与人数

@property (nonatomic, copy) NSString *username;
@property (nonatomic, copy) NSString *avatarUrl;

@property (nonatomic, copy) NSString *contentHtml;
@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, assign) NSUInteger number;

@property (nonatomic, assign) CGFloat cellHeight;

@end

@interface HSAtomicModel : NSObject

@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString*type;

@end

@interface HSDataModel : NSObject<YYModel>

@property (nonatomic, strong) HSAtomicModel *data;

@end

@interface HSRelateModel : NSObject<YYModel>

@property (nonatomic, strong) HSDataModel *startUser;
@property (nonatomic, strong) HSDataModel *user;
@property (nonatomic, strong) NSArray<HSDataModel *> *posts;
@property (nonatomic, strong) NSArray<HSDataModel *> *likes;
@property (nonatomic, strong) NSArray<HSDataModel *> *mentionedBy;//回复数

@end

@interface HSForumListModel : NSObject<YYModel>

@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString*type;
@property (nonatomic, strong) HSForumAttributesModel *attributes;
@property (nonatomic, strong) HSRelateModel *relationships;

@end
